//
//  PYMacroDefinition.h
//  xuexi
//
//  Created by Jim on 2018/4/3.
//  Copyright © 2018年 Jim. All rights reserved.
//

#ifndef PYMacroDefinitionHeader_h
#define PYMacroDefinitionHeader_h

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define APP_STATUSBAR_HEIGHT (CGRectGetHeight([UIApplication sharedApplication].statusBarFrame))

#define APP_NORMAL_STATUSBAR_HEIGHT 20.f

#define APP_NAVIGATION_HEIGHT 44.f

#define APP_TABBAR_HEIGHT 49.f


#define PingFang_SC_Medium(fontSize) [UIFont systemFontOfSize:fontSize weight:UIFontWeightRegular]

#define PingFang_SC_Bold(fontSize) [UIFont boldSystemFontOfSize:fontSize]

#define PY_Light_Color [UIColor colorWithWhite:136.f/255.f alpha:1]

#define PY_Medium_Color [UIColor colorWithWhite:85.f/255.f alpha:1]

#define PY_Dark_Color [UIColor colorWithWhite:34.f/255.f alpha:1]

#define PY_Animation_Duration 0.3

#define APP_NAVIGATION_COLOR [UIColor colorWithWhite:248.f/255.f alpha:1]

#define DEFAULT_FONT_SIZE 13


#define kDegreesToRadian(degrees) (M_PI * (degrees) / 180.0)

#define PYSQLITE_NAME @"PYSQLITE_NAME"



#define py_dispatch_async_main_safe(block)\
if ([NSThread isMainThread]) {\
block();\
} else {\
NSLog(@"safeThread_currentThread = %@", [NSThread currentThread]);\
dispatch_async(dispatch_get_main_queue(), block);\
}

#endif /* PYMacroDefinitionHeader_h */
























